<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!doctype html>
<html lang="zh-CN">
<head>
<style type="text/css">
.id{
	width: 500px;
	height: 30px;
	font-size: 20px;
}
.btn{
	height: 35px;
	font-size: 20px;
}
</style>
<title>清理打款锁</title>
<body>
	<div style="font-size: 30px; color: red;">清理打款锁，当被锁了后隔最少1个小时后才清理</div>
	<input placeholder="请输入活期打款ＩＤ" class="id" id="hid" /> <button class="btn" inputid="hid" >确认清除</button>
	<div style="margin-top: 10px;">  
	<input placeholder="请输入定期打款ＩＤ" class="id" id="did"/> <button class="btn" inputid="did">确认清除</button>
	</div>
	
	
	
	<script src="../static/jquery-1.11.0.js"></script>
	<script type="text/javascript">
	
	$(function(){
		$(".btn").click(function(){ 
			var input = $("#"+$(this).attr("inputid"));
			var id = input.val().trim();
			if(!id){
				input.focus();
				return ;
			} 
			var p={
					t:new Date()
			};
			if(input.attr("id")=="hid"){
				p["hid"]=id;
			}
			if(input.attr("id")=="did"){
				p["did"]=id;
			}
			$.post("do_clear_payout_lock.htm",p,function(data){
				if(data.code){
					$(".id").val("");
					alert("清除完毕");
					return ;
				}else{
					alert("该打款锁不存在");
				}
				
			},"json"); 
			
		}); 
	});
	</script>
</body>
</html>
